package com.aster.common.api.dto.dt2dto;


import com.aster.common.api.domain.TbGeneralUserInfo;
import com.aster.common.api.dto.DtoGeneralUserInfo;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@org.mapstruct.Mapper
public interface GeneralUserInfoConvert {

    GeneralUserInfoConvert MAPPER = Mappers.getMapper(GeneralUserInfoConvert.class);

    @Mapping(target="openId",ignore=true)
    @Mapping(target="unionId",ignore=true)
    @Mapping(target="headPortrait",ignore=true)
    @Mapping(target="sex",ignore=true)
    @Mapping(target="nickname",ignore=true)
    public DtoGeneralUserInfo do2dto(TbGeneralUserInfo tbGeneralUserInfo);
}
